﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/profile.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="System.Data.Linq" %>
<%@ Import Namespace="System.Linq" %>
<asp:Content ID="_js" ContentPlaceHolderID="_javascript" runat="server">
   <script language="javascript">
    var mem_id = <% Response.Write(ViewData["mem_id"].ToString()); %>   </script>
    
</asp:Content>
<asp:Content ID="_right" ContentPlaceHolderID="colRight" runat="server">
<%
    
    int memId = int.Parse(ViewData["mem_id"].ToString());     
%>

<div id="content_wide">
    	<div class="show_content">
    		<div class="title"><div>Content</div></div>
            <div class="border_box" style="background:#fff">
                <div id="right">
                    <div align="center">
                        <div id="editavarta" style="display:none; position:absolute;padding:2px;border:1px solid #e3e3e3;background:#fff" align="right"><%=Html.ActionLink("Sửa avarta","","Avarta") %></div>
                        <% if (ViewData["avarta"] == "0")
                           { %>
                            <img src="../../Content/images/novatar.gif" id="avarta" alt="Avarta"/>
                        <% }
                           else
                           { %>
                           <img src='../../Content/<%=ViewData["avarta"] %>' id="avarta" width="180" />
                            <%} %>
                    </div>
                    <div class="title_top" align ="center"><b>Lượt xem</b></div>
                    <div class="title_ct"></div>
                    <div class="title_bg" align ="center">Số lần xem<br /><b>0</b></div>
                    <div class="title_bottom"></div>
                    <div><%=Html.ActionLink("Thông tin cá nhân", "profileinfo", "Profile", new { }, new { @class="usser_info"})%></div>                
                </div>
                <input type="hidden" id="num" value="0"  />
                <div id="walls">
                    <div class="show_content1">
                        <div class="border_1">
                            <div class="title_walls">
                                <table width=100%>
                                    <tr>
                                        <td width=80% class="toggle" onclick="get_basic_info(<% Response.Write(memId); %>)"" >
                                            <b>Thông tin cơ bản</b>
                                        </td>
                                        <td width=20% align=right><%= Html.ActionLink("Chỉnh sửa","profileedit?part=editpersonal","Profile")%></td>
                                    </tr>
                                </table>
                            </div>
                            <div id="info_box_0">
                            
                            <form method=post action="" id="box_info">
                            <div id="info_box" class="box" style="display:none;"><span>Hello</span></div>
                                <table width=100%>
                                    <tr>
                                         <td width=30% align=right>
                                                Họ tên :
                                        </td>
                                        <td>
                                                <%=Html.TextBox("fname","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                     <tr>
                                         <td width=30% align=right>
                                                Ngày sinh :
                                        </td>
                                        <td>
                                                <select id="day" name="day" class="input" style="width:80px;">
                                                     <script language="javascript">
                                                         
                                                        for(var i = 1;i<=31;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                                </select>
                                                <select id="month" name="month" class="input" style="width:80px;">
                                                     <script language="javascript">
                                                         
                                                        for(var i = 1;i<=12;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                                </select>
                                                <select id="year" name="year" class="input" style="width:80px;">
                                                     <script language="javascript">
                                                         var d = new Date();
                                                        for(var i = 1900;i<=(d.getFullYear()-10);i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                                </select>
                                        </td>
                                     </tr>
                                     <tr>
                                         <td width=30% align=right>
                                                Giới tính :
                                        </td>
                                        <td>
                                                <select name="gender" id="gender" class="input">
                                                    <option value="Nam">Nam</option>
                                                    <option value="Nữ">Nữ</option>
                                                    <option value="Khác">Khác</option>
                                                </select>
                                        </td>
                                     </tr>
                                      <tr>
                                         <td width=30% align=right>
                                                Quốc gia :
                                        </td>
                                        <td>
                                             <%=Html.DropDownList("mem_country", ViewData["country"] as SelectList)%>
                                        </td>
                                     </tr>
                                      <tr>
                                         <td width=30% align=right>
                                                Thành phố :
                                                
                                        </td>
                                        <td>
                                               
                                                   <select name="city" id="city">
                                                   
                                                   </select>
                                                
                                        </td>
                                     </tr>
                                      <tr>
                                         <td width=30% align=right>
                                                Email :
                                        </td>
                                        <td>
                                                <%=Html.TextBox("email","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                      <tr>
                                         <td width=30% align=right valign=top>
                                             Tự bạch:   
                                        </td>
                                        <td>
                                               <%=Html.TextBox("aboutme","",new {@class = "input",@style="width:260px;height:90px"}) %>
                                        </td>
                                     </tr>
                                      <tr>
                                         
                                        <td colspan=2 align=center>
                                                <input type="button" value="Lưu" id="btsave" class="button" onclick="get_contact(<% Response.Write(memId); %>)" /><input type="reset" value="Nhập lại" class="button" />
                                        </td>
                                     </tr>
                                     
                                     
                                </table>
                                </form>
                            </div>
                        </div>
                        
                        
                        
                        <div class="border_1">
                        
                            <div class="title_walls">
                           
                                <table width=100%>
                                    <tr>
                                        <td width=80% class="toggle" onclick="get_contact(<% Response.Write(memId); %>)" >
                                            <b>Thông tin liên hệ</b>
                                        </td>
                           
                        <td width=20% align=right><%= Html.ActionLink("Chỉnh sửa","profileedit?part=editpersonal","Profile")%></td>
                       </tr>
                                </table>
                            </div>
                            <div id="info_box_1">
                            
                                <div id="contact_box" class="box" style="display:none;"><span>Hello</span></div>
                                <form method="post">
                                <table width=100% >
                                    
                                     <tr>
                                        <td width="30%" align="right">
                                                Yahoo ID :
                                        </td>
                                        <td>
                                                <%=Html.TextBox("yahoo_id","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td width="30%" align="right">
                                                Gmail ID :
                                        </td>
                                        <td>
                                               <%=Html.TextBox("gmail_id","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                       
                                     <tr>
                                        <td width="30%" align="right">
                                                Skype ID :
                                        </td>
                                        <td>
                                                <%=Html.TextBox("skype_id","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                     <tr>
                                         
                                        <td colspan=2 align=center>
                                                <input type="button" value="Lưu" id="btsavect" class="button" onclick="get_sj_info(<% Response.Write(memId); %>)" /><input type="reset" value="Nhập lại" class="button" />
                                        </td>
                                     </tr>
                                </table></form>
                                
                            </div>
                        </div>
                        
                        <div class="border_1">
                            <div class="title_walls">
                            <table width=100%>
                                    <tr>
                                        <td width=80% class="toggle" onclick="get_sj_info(<% Response.Write(memId); %>)" >
                                            <b>Học hành và nghề nghiệp</b>
                                        </td>
                                        <td width=20% align=right><%= Html.ActionLink("Chỉnh sửa","profileedit?part=editpersonal","Profile")%></td>
                                    </tr>
                                </table>
                            </div>
                            <div id="info_box_2">
                            <div id="sj_box" class="box" style="display:none;"><span>Hello</span></div>
                                <form method="post" id="box_school">
                                  <table width=100% >
                                    
                                     <tr>
                                        <td width="30%" align="right">
                                                Trường :
                                        </td>
                                        <td>
                                                 <%=Html.TextBox("s_name","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td width="30%" align="right">
                                                Quốc gia :
                                        </td>
                                        <td>
                                                <%=Html.DropDownList("school_country", ViewData["country"] as SelectList)%>
                                               
                                               <select id="s_city" name="s_city" class="input" style="width:130px;">
                                               
                                               </select>
                                        </td>
                                     </tr>
                                       <tr>
                                        <td width="30%" align="right">
                                                Trình độ :
                                        </td>
                                        <td>
                                                 <select id="s_lv" name="s_level" class="input" style="width:130px;">
                                                    <option value="Cấp 1">Cấp 1</option>
                                                    <option value="Cấp 2">Cấp 2</option>
                                                    <option value="Cấp 3">Cấp 3</option>
                                                    <option value="Trung cấp">Trung cấp</option>
                                                    <option value="Cao đẳng">Cao đẳng</option>
                                                    <option value="Đại học">Đại học</option>
                                                    <option value="Sau đại học">Sau đại học</option>
                                                    <option value="Khác">Khác</option>
                                               </select>
                                        </td>
                                     </tr>
                                    
                                    <tr>
                                        <td width="30%" align="right">
                                                Niên khóa :
                                        </td>
                                        <td>
                                               <select id="s_start" name="s_start" class="input" style="width:65px;">
                                               <script language="javascript">
                                                        var d = new Date();
                                                        var nowyear = d.getFullYear();
                                                        
                                                        for(var i = 1900;i<=nowyear;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                               </select>
                                               <select id="s_end" name="s_end" class="input" style="width:65px;">
                                                    <script language="javascript">
                                                        var d = new Date();
                                                        var nowyear = d.getFullYear();
                                                        
                                                        for(var i = 1900;i<=nowyear;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                               </select>
                                        </td>
                                     </tr>
                                    
                                </table>  
                                <hr />
                                <table width=100% >
                                    
                                     <tr>
                                        <td width="30%" align="right">
                                                Công ty :
                                        </td>
                                        <td>
                                                 <%=Html.TextBox("company","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td width="30%" align="right">
                                                Quốc gia :
                                        </td>
                                        <td>
                                               <%=Html.DropDownList("j_country", ViewData["country"] as SelectList, new {@class="input",@style="width:130px;" })%>
                                               <select id="j_city" name="j_city" class="input" style="width:130px;">
                                               
                                               </select>
                                        </td>
                                     </tr>
                                       <tr>
                                        <td width="30%" align="right">
                                                Nghề nghiệp :
                                        </td>
                                        <td>
                                                 <%=Html.DropDownList("j_name",ViewData["job"] as SelectList) %>
                                        </td>
                                     </tr>
                                     <tr>
                                        <td width="30%" align="right">
                                                Chức vụ :
                                        </td>
                                        <td>
                                                  <%=Html.TextBox("task","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                    <tr>
                                        <td width="30%" align="right">
                                                Thời gian :
                                        </td>
                                        <td>
                                               <select id="j_start" name="j_start" class="input" style="width:65px;">
                                               <script language="javascript">
                                                        var d = new Date();
                                                        var nowyear = d.getFullYear();
                                                        
                                                        for(var i = 1900;i<=nowyear;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                               </select>
                                               <select id="j_end" name="j_end" class="input" style="width:65px;">
                                               <script language="javascript">
                                                        var d = new Date();
                                                        var nowyear = d.getFullYear();
                                                        
                                                        for(var i = 1900;i<=nowyear;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                               </select>
                                        </td>
                                     </tr>
                                    
                                     <tr>
                                         
                                        <td colspan=2 align=center>
                                                <input type="button" value="Lưu" id="btsavesj" class="button"  /><input type="reset" value="Nhập lại" class="button" />
                                        </td>
                                     </tr>
                                </table> 
                                </form>
                            </div>
                        </div>
                        
                        <div class="border_1">
                       
                            <div class="title_walls">
                             
                                <table width=100%>
                                    <tr>
                                        <td width=80% class="toggle" onclick="get_address_info(<% Response.Write(memId); %>)" >
                                            <b>Nơi ở</b>
                                        </td>
                                        <td width=20% align=right><%= Html.ActionLink("Chỉnh sửa","profileedit?part=editpersonal","Profile")%></td>
                                    </tr>
                                </table>
                            </div>
                            <div id="info_box_3">
                            <div id="address_box" class="box" style="display:none;"><span>Hello</span></div>
                            <form method="post">
                            <table width=100% >
                                    
                                     <tr>
                                        <td width="30%" align="right">
                                                Địa chỉ :
                                        </td>
                                        <td>
                                                 <%=Html.TextBox("address","",new {@class = "input",@style="width:260px"}) %>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td width="30%" align="right">
                                                Quốc gia :
                                        </td>
                                        <td>
                                               <%=Html.DropDownList("a_country", ViewData["country"] as SelectList, new {@class="input",@style="width:130px;" })%>
                                               <select id="a_city" name="a_city" class="input" style="width:130px;">
                                               
                                               </select>
                                        </td>
                                     </tr>
                                      
                                    <tr>
                                        <td width="30%" align="right">
                                                Thời gian sống :
                                        </td>
                                        <td>
                                               <select id="live_start" class="input" style="width:65px;">
                                                    <script language="javascript">
                                                        var d = new Date();
                                                        var nowyear = d.getFullYear();
                                                        
                                                        for(var i = 1900;i<=nowyear;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                               </select>
                                               <select id="live_end"  class="input" style="width:65px;">
                                               <script language="javascript">
                                                        var d = new Date();
                                                        var nowyear = d.getFullYear();
                                                        
                                                        for(var i = 1900;i<=nowyear;i++)
                                                        {
                                                            document.write("<option value = '"+i+"'>"+i+"</option>");
                                                        }
                                                    </script>
                                               </select>
                                        </td>
                                     </tr>
                                    
                                     <tr>
                                         
                                        <td colspan=2 align=center>
                                                <input type="button" value="Lưu" id="btsavea" class="button" /><input type="reset" value="Nhập lại" class="button" />
                                        </td>
                                     </tr>
                                </table> </form>
                            </div>
                        </div>
                        
                        <div class="border_1">
                            <div class="title_walls">
                            
                            <table width=100%>
                                    <tr>
                                        <td width=80% class="toggle" onclick="get_interest_info(<% Response.Write(memId); %>)" >
                                            <b>Sở thích</b>
                                        </td>
                                        <td width=20% align=right><%= Html.ActionLink("Chỉnh sửa","profileedit?part=editpersonal","Profile")%></td>
                                    </tr>
                                </table>
                            </div>
                            <div id="info_box_4">
                            <form method="post">
                            <div id="interest_box" class="box" style="display:none;"><span>Hello</span></div>
                               <table width=100% >
                                    
                                     <tr>
                                        <td align="left">
                                                <b>Bạn thích tìm hiểu về lĩnh vực nào?</b><br />
                                                <%=Html.TextArea("major","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     <tr>
                                        <td align="left">
                                                <b>Bạn thích chơi game nào?</b><br />
                                                <%=Html.TextArea("game","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td align="left">
                                                <b>Bạn thích thể loại nhạc nào?</b><br />
                                                <%=Html.TextArea("music","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td align="left">
                                                <b>Bạn thích loại sách nào?</b><br />
                                                <%=Html.TextArea("book","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td align="left">
                                                <b>Bạn thích món ăn nào?</b><br />
                                                <%=Html.TextArea("food","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td align="left">
                                                <b>Bạn thích thể loại phim nào nào?</b><br />
                                                <%=Html.TextArea("movie","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                        <td align="left">
                                                <b>Ngoài ra bạn có thích gì nữa nào?</b><br />
                                                <%=Html.TextArea("other","",new {@class = "input",@style="width:100%"}) %><br /><span style="color:#414141">Mỗi thông tin cách nhau dấu ","</span>
                                        </td>
                                     </tr>
                                     
                                     <tr>
                                         
                                        <td align=center>
                                                <input type="button" value="Lưu" id="btsavei" class="button" /><input type="reset" value="Nhập lại" class="button" />
                                        </td>
                                     </tr>
                                </table></form> 
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
             </div>
        </div>
    </div>
    
    <div class="clear"></div>
   <div class="space"></div>
</asp:Content>
